package com.example.demo;

import com.exmaple.demo.share.ShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author richie
 * @since 2021/10/13 10:45
 */
@RestController
public class UserController {
    @Autowired
    private ShareService shareService;

    @GetMapping("/user")
    public String user() {
        return "user|" + shareService.getData();
    }
}
